/*************************************************************************
	> File Name: TemplateMethod.cc
	> Author: Joker
	> Mail: mahongtao@foxmail.com 
	> Created Time: 2020-09-22 12:23:49
 ************************************************************************/

#include "TemplateMethod.h"

#include <iostream>
 
using std::cout;
using std::endl;

void AbstratClass::TemplateMethod(){
    PrimitiveOperation1();
    PrimitiveOperation2();
}

void ConcreateClass::PrimitiveOperation1(){
    cout << "PrimitiveOperation1 by ConcreateClass" << endl;
}

void ConcreateClass::PrimitiveOperation2(){
    cout << "PrimitiveOperation2 by ConcreateClass" << endl;
}
